package com.lxy.sentinel.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;

/**
 * @author lixinyang
 * @className: CustomSentinelExceptionHandler
 * @description: TODO
 * @date 2022/04/29日  14:48
 */

public class CustomSentinelExceptionHandler {
    public String exceptionHandler(long s, BlockException ex) {
        // Do some log here.
        ex.printStackTrace();
        return "Oops, error occurred at " + s;
    }
}
